SUBDIRS = src/resources

.rc.lo:
			$(LIBTOOL) --tag=RC --mode=compile $(WX_RESCOMP) $< -o $@

AM_CPPFLAGS = \
			$(WX_CXXFLAGS) \
			-I$(top_srcdir)/src/include \
			-I$(top_srcdir)/src/sdk/wxscintilla/include \
			-I$(top_srcdir)/src/include/tinyxml \
			-I$(srcdir)/src \
			-I$(srcdir)/src/LSPclient \
			-I$(srcdir)/src/codecompletion

if CODEBLOCKS_NT
AM_CPPFLAGS += \
			-I$(srcdir)/src/winprocess \
			-I$(srcdir)/src/winprocess/asyncprocess \
			-I$(srcdir)/src/winprocess/misc
else
AM_CPPFLAGS += -I$(srcdir)/src/unixprocess
endif

pluginlibdir = $(pkglibdir)/plugins

pluginlib_LTLIBRARIES = \
			libclangd_client.la

libclangd_client_la_LDFLAGS = \
			@MODULE_SHARED_LDFLAGS@ \
			-no-undefined \
			-avoid-version

libclangd_client_la_LIBADD = \
			../../../sdk/libcodeblocks.la \
			-lutil \
			$(WX_LIBS) \
			$(CB_TINYXML_LIBS)

libclangd_client_la_SOURCES = \
			src/ClangLocator.cpp \
			src/codecompletion/ccoptionsdlg.cpp \
			src/codecompletion/ccoptionsprjdlg.cpp \
			src/codecompletion/cctreectrl.cpp \
			src/codecompletion/classbrowser.cpp \
			src/codecompletion/classbrowserbuilderthread.cpp \
			src/codecompletion/codecompletion.cpp \
			src/codecompletion/coderefactoring.cpp \
			src/codecompletion/doxygen_parser.cpp \
			src/codecompletion/gotofunctiondlg.cpp \
			src/codecompletion/insertclassmethoddlg.cpp \
			src/codecompletion/parsemanager.cpp \
			src/codecompletion/parsemanager_base.cpp \
			src/codecompletion/parser/ccdebuginfo.cpp \
			src/codecompletion/parser/cclogger.cpp \
			src/codecompletion/parser/expression.cpp \
			src/codecompletion/parser/LSP_symbolsparser.cpp \
			src/codecompletion/parser/LSP_tokenizer.cpp \
			src/codecompletion/parser/parser.cpp \
			src/codecompletion/parser/parser_base.cpp \
			src/codecompletion/parser/profiletimer.cpp \
			src/codecompletion/parser/searchtree.cpp \
			src/codecompletion/parser/token.cpp \
			src/codecompletion/parser/tokenizer.cpp \
			src/codecompletion/parser/tokentree.cpp \
			src/codecompletion/parser/ParserCommon.h \
			src/codecompletion/selectincludefile.cpp \
			src/codecompletion/wxsmith/CCTestFrame.wxs \
			src/LSPclient/client.cpp \
			src/LSPclient/lspdiagresultslog.cpp

if CODEBLOCKS_NT
libclangd_client_la_SOURCES += \
			src/winprocess/asyncprocess/StringUtils.cpp \
			src/winprocess/asyncprocess/asyncprocess.cpp \
			src/winprocess/asyncprocess/processreaderthread.cpp \
			src/winprocess/asyncprocess/procutils.cpp \
			src/winprocess/asyncprocess/winprocess.cpp \
			src/winprocess/asyncprocess/winprocess_impl.cpp \
			src/winprocess/misc/fileutils.cpp
else
libclangd_client_la_SOURCES += \
			src/unixprocess/asyncprocess/UnixProcess.cpp \
			src/unixprocess/asyncThreadTypes.cpp \
			src/unixprocess/fileutils.cpp \
			src/unixprocess/procutils.cpp \
			src/unixprocess/StringUtils.cpp
endif

noinst_HEADERS = \
			src/ClangLocator.h \
			src/ClgdCCToken.h \
			src/codecompletion/ccoptionsdlg.h \
			src/codecompletion/ccoptionsprjdlg.h \
			src/codecompletion/cctreectrl.h \
			src/codecompletion/classbrowser.h \
			src/codecompletion/classbrowserbuilderthread.h \
			src/codecompletion/codecompletion.h \
			src/codecompletion/coderefactoring.h \
			src/codecompletion/doxygen_parser.h \
			src/codecompletion/gotofunctiondlg.h \
			src/codecompletion/IdleCallbackHandler.h \
			src/codecompletion/insertclassmethoddlg.h \
			src/codecompletion/LSPEventCallbackHandler.h \
			src/codecompletion/parsemanager.h \
			src/codecompletion/parsemanager_base.h \
			src/codecompletion/parser/ccdebuginfo.h \
			src/codecompletion/parser/cclogger.h \
			src/codecompletion/parser/expression.h \
			src/codecompletion/parser/LSP_symbolsparser.h \
			src/codecompletion/parser/LSP_tokenizer.h \
			src/codecompletion/parser/parser.h \
			src/codecompletion/parser/parser_base.h \
			src/codecompletion/parser/profiletimer.h \
			src/codecompletion/parser/searchtree.h \
			src/codecompletion/parser/token.h \
			src/codecompletion/parser/tokenizer.h \
			src/codecompletion/parser/tokentree.h \
			src/codecompletion/selectincludefile.h \
			src/LSPclient/client.h \
			src/LSPclient/json.hpp \
			src/LSPclient/protocol.h \
			src/LSPclient/transport.h \
			src/LSPclient/uri.h \
			src/LSPclient/lspdiagresultslog.h \
			src/LSP_SymbolKind.h \
			src/Version.h

if CODEBLOCKS_NT
noinst_HEADERS += \
			src/winprocess/asyncprocess/StringUtils.h \
			src/winprocess/asyncprocess/asyncprocess.h \
			src/winprocess/asyncprocess/processreaderthread.h \
			src/winprocess/asyncprocess/procutils.h \
			src/winprocess/asyncprocess/smart_ptr.h \
			src/winprocess/asyncprocess/winprocess.h \
			src/winprocess/asyncprocess/winprocess_impl.h \
			src/winprocess/misc/fileutils.h \
			src/winprocess/misc/wxStringHash.h
else
noinst_HEADERS += \
			src/unixprocess/asyncprocess/UnixProcess.h \
			src/unixprocess/asyncThreadTypes.h \
			src/unixprocess/fileutils.h \
			src/unixprocess/procutils.h \
			src/unixprocess/StringUtils.h \
			src/unixprocess/wxStringHash.h
endif
